# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#

User.create(email: 'instructor1@autokool.ee', password: 'test', usable: Instructor.create(first_name: 'John', surname: 'Doe'))

User.create(email: 'instructor2@autokool.ee', password: 'test', usable: Instructor.create(first_name: 'Paul', surname: 'Jones'))

User.create(email: 'student1@autokool.ee', password: 'test', usable: Student.create(first_name: 'Jack', surname: 'Callback'))

User.create(email: 'student2@autokool.ee', password: 'test', usable: Student.create(first_name: 'Chris', surname: 'Allen'))

Car.create(registration_number: '123 BAD', engine_type: 2, gearbox_type: 1, manufacturer: 'VW', model: 'Passat')

Car.create(registration_number: '444 LOL', engine_type: 1, gearbox_type: 1, manufacturer: 'Toyota', model: 'Corolla')

Topic.create(name: 'Driving in the dark', comment: 'Student learns techniques for driving in conditions of sub-optimal light')

Topic.create(name: 'Driving on the highway', comment: 'Student learns to drive in high-speed conditions')
